package com.zq.rabbitmq.servcie;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Service;

@Service
@RabbitListener(queues = {"queue01"})
public class ReciveServiceImpl implements  ReciveService {

    @RabbitHandler
    @Override
    public void recive01(String str) {
        System.out.println(str);
    }

    @Override
    public void recive02(byte[] bytes) {

    }

    @Override
    public void recive03(Object object) {

    }
}
